package com.ilas.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 注册用户(BizUser)实体类
 *
 * @author bob
 * @since 2020-09-19 17:31:20
 */
@Data
@ApiModel(value = "BizUser", description = "注册用户")
public class BizUser {
    private static final long serialVersionUID = 551289276292424626L;

    @ApiModelProperty(name="id", dataType="Long", value="主键ID")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("用户真实姓名")
    private String name;

    @ApiModelProperty("用户登录密码")
    private String password;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("证件类型")
    private String cardType;

    @ApiModelProperty("证件号")
    private String cardNum;

    @ApiModelProperty("生日")
    private String birthday;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("区")
    private String district;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("头像名称")
    private String avatarName;

    @ApiModelProperty("头像存放位置")
    private String avatarPath;

    @ApiModelProperty("当前状态，1-正常，2-停用,3-删除")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("注册时间")
    private Date registerTime;

    @ApiModelProperty("注册方式")
    private String registerType;

    @ApiModelProperty("最近登录ip")
    private String lastLoginIp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("最近登录时间")
    private Date lastLoginTime;

    @ApiModelProperty("登录次数")
    private Integer loginNum;

    @ApiModelProperty("小程序用户id")
    private String openid;

}
